package cn.hn3l.agriculture.services.interfaces;

import cn.hn3l.agriculture.entitis.pictures.Picture;

import java.util.List;

/**
 * @Author Wang Weiwei
 * @Since 16-10-22
 * @Describe
 */
public interface FileService {
    byte[] getPictureBytesById(int id);

    Picture savePicture(Picture picture);

    /**将从html字符串中解析出所有图片的集合
     * @param pictureHtml html字符串
     * @return 图片对象的list*/
    List<Picture> parseHTMLToPictureList(String pictureHtml);
}
